/**
 * 对公众平台发送给公众账号的消息加解密示例代码.
 * 
 * @copyright Copyright (c) 1998-2014 Tencent Inc.
 */

// ------------------------------------------------------------------------

package com.chart.common.utils;

import com.chart.common.constant.Constants;
import com.chart.common.utils.http.HttpUtils;

/**
 * SHA1 class
 *
 * 计算公众平台的消息签名接口.
 */
public class GaodeMapUtils {

	private static final String ROAD_CONDITIONS_KEY = "2e9621ee97615806030c7d3d07c398c8";
	private static final String ROAD_CONDITIONS_URL = "https://restapi.amap.com/v3/traffic/status/road";



	public static String getRoadConditions(String level,String name,String city,String adcode) {
		String RoadConditions = HttpUtils.sendSSLGet(ROAD_CONDITIONS_URL, "key="+ROAD_CONDITIONS_KEY+"&level="+level+"&name="+name+"&city="+city+"&adcode="+adcode, Constants.UTF8);
		return RoadConditions;
	}

}
